Python for Bioinformatics

This Jupyter notebook is intented to be used alongside the book Python for Bioinformatics

Chapter 16: Web Application for Filtering Vector Contamination


In [0]:
!pip install bottle

In [0]:
!pip install biopython

In [0]:
!apt-get install ncbi-blast+

In [0]:
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip

In [0]:
!unzip ngrok-stable-linux-amd64.zip

In [0]:
!wget https://github.com/Serulab/Py4Bio/archive/master.zip

In [0]:
!unzip master.zip

In [0]:
!cp -r Py4Bio-master/code/ch16/* ./

In [0]:
!sed -i "s/port=8080/port=8888/" ./vector.py

In [0]:
!sed -i "s%/home/sbassi/opt/ncbi-blast-2.6.0+/bin/blastn%/usr/bin/blastn%g" ./vector.py

In [0]:
get_ipython().system_raw('./ngrok http 8888 &')

In [0]:
%%sh
curl -s http://localhost:4040/api/tunnels | python -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])"

In [0]:
!rm ./bottle.py

In [0]:
!python ./vector.py

In [0]: